Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not throw on invalid Vimeo id, render hint instead #55

Merged
merged 1 commit into from
Dec 22, 2022

Conversation

psolbach
Copy link
Member

@psolbach psolbach commented Dec 22, 2022

This prevents builds from throwing an error and failing on invalid Vimeo source URLs entered in the CMS. Instead, we render an error message to clearly indicate what went wrong. We achieve this by ignoring the Hugo error on GET ("error-remote-getjson") and adding a statement to the embed template.

@psolbach psolbach requested a review from bezoerb December 22, 2022 10:50
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Member

@bezoerb bezoerb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bezoerb bezoerb merged commit 07049da into main Dec 22, 2022
@bezoerb bezoerb deleted the feat/improve-vimeo-template branch December 22, 2022 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants